from ui.Ui_hlayout import Ui_MainWindow
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow

if __name__ == '__main__':
    # 创建应用对象
    app = QApplication(sys.argv)

    # 创建窗口对象
    mainWindow = QMainWindow()

    # 创建UI对象
    ui = Ui_MainWindow()

    # 设置UI到指定窗口
    ui.setupUi(mainWindow)

    # 窗口显示
    mainWindow.show()

    # 进入应用的消息循环
    sys.exit(app.exec_())